package com.voilet.interview.android.aidl;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

/**
 * Created by kan212 on 2019/4/2.
 */

public class AdditionService extends Service {

    @Override
    public IBinder onBind(Intent intent) {
        return new IAdditionService.Stub(){

            @Override
            public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {

            }

            @Override
            public int add(int value1, int value2) throws RemoteException {
                return value1 + value2;
            }
        };
    }
}
